{extend name="common@base" /}
{block name="content"}
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box box-gray">
        <form class="form" method="get">
          <div class="box-body">
            <div class="form-group">
              <label for="">
                班级名称<input type="text" name="search[title]" value="{$search ? $search['title'] : ''}" class="form-control">
              </label>
              <button type="submit" class="btn btn-default btn-sm">查询</button>
              <a href="{:url('index')}" class="btn btn-default btn-sm">重置</a>
            </div>
          </div>
        </form>
      </div>
      <div class="box box-primary">
        <div class="box-header with-border">
          <div class="box-title">年级管理</div>
          <div class="pull-right">
            <a href="{:url('edit')}" class="btn btn-primary">新增</a>
          </div>
        </div>
        <div class="box-body">
          <table id="table" class="table">
            <thead>
            <tr>
              <th>ID</th>
              <th>班级名称</th>
              <th>班主任</th>
              <th>备注</th>
              <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {foreach $rows as $row}
            <tr>
              <td width="50px;">{$row.id}</td>
              <td width="20%">{$row.title}</td>
              <td>{$row.realname}</td>
              <td>{$row.memo}</td>
              <td width="100px">
                <a href="{:url('edit',['id'=>$row.id])}" class="btn btn-xs btn-default">编辑</a>
              </td>
            </tr>
            {/foreach}
            </tbody>
          </table>
        </div>
        <div class="box-footer">
          {$rows->render()}
        </div>
      </div>
    </div>
  </div>
</section>
{/block}
{block name="page_script"}

{/block}





